package com.sunchp.nio.sample.block;


import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.channels.SocketChannel;

public class BlockHandler implements Runnable {
//    public static final ByteBuffer dst = BufferUtil.allocate(1024);
//
//    private SocketChannel socketChannel;
//
//    public BlockHandler(SocketChannel socketChannel) {
//        this.socketChannel = socketChannel;
//    }
//
//    @Override
    public void run() {
//        try {
//            dst.clear();
//            socketChannel.read(dst);
//            dst.flip();
//            socketChannel.write(dst);
//        } catch (IOException e) {
//            e.printStackTrace();
//        }
    }
}
